package com.siccr.app;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

import com.siccr.model.Airplane;
import com.siccr.model.Inventary;
import com.siccr.model.Passenger;
import com.siccr.model.Ticket;

class Start {
	
	public Start() {
		
		try {
			
			System.out.println("starting...");
			
			/*Passenger martin = new Passenger("Maria Miranda","1A");
			Passenger carlos = new Passenger("Carlos Mora","1A");
			Passenger lucho = new Passenger("Cesar Milano","1A");
			
			Airplane ap = new Airplane();
			ap.setGasoline(58.35f);
			ap.setId(1);
			ap.setName("condor");
			
			Airplane nasa = new Airplane(7);
			
			try {
				System.out.println(martin.aboard(nasa, City.MANAGUA)?martin.getName()+" abordo correctamente":"no abordo su avion");
				System.out.println(carlos.aboard(nasa, City.SANJOSE)?carlos.getName()+" abordo correctamente":"no abordo su avion");
				//System.out.println(lucho.aboard(nasa, City.MANAGUA)?lucho.getName()+" abordo correctamente":"no abordo su avion");			
			} catch (Exception e) {
				System.out.println("FATAL ERR: ");
				e.printStackTrace();
			}
			
			System.out.println(getPassengerList());*/
			
			//Engine e = new Engine();
			
			//Machine m = e;
			//e.trash();
			
			//Engine.check();
			
			//Machine.check();
			
			List<Inventary<? extends String, Boolean, String>> data = new ArrayList<Inventary<? extends String,Boolean,String>>();
			
			List<Inventary<? extends Integer, Boolean, String>> data2 = new ArrayList();
			
			Inventary<String, Boolean, String> x = new Inventary<String, Boolean, String>();
			
			Ticket<? extends String> s = new Ticket<String>();
			
			List<? extends String> f = new ArrayList<String>();
			
			data2.get(0).getFirstLocation();
			//data.add(x);
			data.get(0).<Integer>recover(8);
			data.get(1).<Float>recover(8f);
			
		} catch (Exception e) {
			
			System.out.println(e.getMessage());
		}		
		
	}
	
	public String getPassengerList(){
		
		Airplane nasa = new Airplane(7);
		
		Passenger[] plist = nasa.getPassengers();

		return "loading"+plist[0];
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		new Start();

	}

}
